﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
using SchEdu.Framework.DataModel;

namespace SchEduApp
{
    partial class AboutForm : Form
    {

        public AboutForm()
        {
            InitializeComponent();
        }

        public void SetAboutInfo( AboutInfo aboutInfo)
        {
            this.Text = aboutInfo.Title;
            this.labelProductName.Text = aboutInfo.Product;
            this.labelVersion.Text = "Version " + aboutInfo.Version;
            this.labelCopyright.Text = "Copyright " + aboutInfo.Copyright;
            this.labelCompanyName.Text = "Company " +aboutInfo.Company;
            this.textBoxDescription.Text = aboutInfo.Description;
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            Close();
        }

    }
}
